package com.kfm.am.book;

public class Book {

    private String title;
    private String author;
    private int year;
    private double price;

    public Book() {
    }

    public Book(String title, String author, int year, double price) {
        this.title = title;
        this.author = author;
        this.year = year;
        this.price = price;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return this.author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getYear() {
        return this.year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getPrice() {
        return price;
    }

    public String info() {
        return "书名：" + this.title + ", 作者：" + this.author + ", 出版年份：" + this.year + ", 出售价格：" + this.price;
    }
}
